package com.wxg.entity;

public class EleIdAndBounds {
	public final String id;
	public final WebEleBounds bounds;
	// private int elePreviousHeight; // 不需要, bounds.y 即是元素的起始高度(y - (y/MAIN_HEIGHT)*MAIN_HEIGHT)
	
	/**
	 * Add 2018年2月7日
	 * 元素在页面中的起始高度(每页重置)
	 */
	private int startHeightInPage;
	
	public EleIdAndBounds(String id, int x, int y, int width, int height){
		this.id = id;
		this.bounds = new WebEleBounds(x,y,width,height);
	}
	public EleIdAndBounds(String id, WebEleBounds bounds){
		this.id = id;
		this.bounds = bounds;
	}
	
	public int getStartHeightInPage() {
		return startHeightInPage;
	}
	public void setStartHeightInPage(int startHeightInPage) {
		this.startHeightInPage = startHeightInPage;
	}
	
	@Override
	public String toString() {
		return String.format("id: %s, bounds: %s", id, bounds);
	}
}
